import {AfterViewInit, Component, Input, OnInit, TemplateRef, ViewChild, ViewContainerRef} from '@angular/core';
import {DomSanitizer, SafeHtml} from "@angular/platform-browser";

@Component({
    selector: 'erupt-custom-modal-content',
    template: `
        <div [innerHTML]="html|safeHtml"></div>
    `,
    styles: []
})
export class CustomModalContentComponent implements AfterViewInit {

    @Input() html: string;

    /*@ViewChild('tpl', {static: false})
    tplRef: TemplateRef<any>;*/

    /* constructor(private vcRef: ViewContainerRef) {
     }*/
    constructor() {
    }

    ngAfterViewInit(): void {
        // this.vcRef.createEmbeddedView(this.tplRef).detectChanges();
    }


}
